import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { ConfigProvider} from 'antd'
import { green } from '@ant-design/colors'
import zhCN from 'antd/locale/zh_CN'
import 'dayjs/locale/zh-cn'
import App from './App.jsx'

import './index.less'

function Main() {

    return (
        <StrictMode>
            <ConfigProvider theme={{
                token: {
                    colorPrimary: green.primary,
                },
                components:{
                    Layout:{
                        headerBg:green[8]
                    }
                }
            }} locale={zhCN}>
                <App />
            </ConfigProvider>
        </StrictMode>
    )
}

createRoot(document.getElementById('root')).render(<Main/>)
